//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet
{
    class CellFormattingRecordUndoUnit: CellUndoUnit
    {
        public CellFormattingRecordUndoUnit(Cell cell, CellFormattingRecord record): base (cell)
        {
            this._record = record;
        }

        readonly CellFormattingRecord _record;
        #region IUndoUnit Members

        public override void Do()
        {
            _target.SetFormattingRecordUnsafe(_record);
            _target.Row.InvalidateHeight();
        }

        #endregion
    }
}
